<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>工作队员添加页面</title>
  <link rel="stylesheet" href="../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../yl/style.css" />
  <link rel="stylesheet" href="../../style/wangeditor.css" />
  <link rel="stylesheet" href="../../yl/mobile.css" />
  <link rel="stylesheet" href="../../yl/easyui.css" />
  <link rel="stylesheet" href="../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">
          {{action=='Add'?'添加工作日志信息':action=='Modify'?'修改工作日志信息':''}}
        </div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'work_teams_works_logs', 'form': 'dataForm' ,'primary_key':'Work_Log_SerialNumber' })">
      <el-form :model="dataForm" ref="form" inline-message="true" style="width: 100%">
        <el-descriptions :column="1" size="large" border>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">工作队成员姓名</div>
            </template>
            <el-form-item prop="Work_Team_Member_SerialNumber"
              :rules="[{ required: true, message: '请输入成员姓名', trigger: 'change' }]">
              <!-- <el-select filterable v-model="dataForm.Work_Team_Member_SerialNumber" placeholder="请选择">
                <el-option v-for="item in options" :key="item.Work_Team_Member_SerialNumber" :label="item.Personal_Name"
                  :value="item.Work_Team_Member_SerialNumber">
                </el-option>
              </el-select> -->
              <yl-select v-model="dataForm.Work_Team_Member_SerialNumber"
                clearable filterable placeholder="请选择成员姓名" :options="options" :props="{value:'Work_Team_Member_SerialNumber',label:'Personal_Name'}">
                <el-table-column prop="ID_Card_Number" width="180" show-overflow-tooltip label="身份证号"></el-table-column>
                <el-table-column prop="Personal_Name" show-overflow-tooltip label="姓名"></el-table-column>
                <el-table-column prop="Work_Team_Name" show-overflow-tooltip label="所属工作队名称"></el-table-column>
              </yl-select>
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">工作日志的日期</div>
            </template>
            <el-form-item prop="Log_Date" :rules="[{ required: true, message: '请选择工作日志的日期', trigger: 'blur' }]">
              <el-date-picker v-model="dataForm.Log_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
                class="borderless-input" type="date" placeholder="请选择工作日志的日期" size="large"></el-date-picker>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">工作日志内容</div>
            </template>
            <el-form-item prop="Log_Content" :rules="[{ required: true, message: '请输入工作日志内容', trigger: 'blur' }]">
              <yl-text-editor v-model="dataForm.Log_Content" placeholder="请输入工作日志内容" ></yl-text-editor>
            </el-form-item>
          </el-descriptions-item>
          <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">提交日期</div>
              </template>
              <el-date-picker
                v-model="dataForm.Submitted_Datetime"
                format="YYYY-MM-DD"
                value-format="YYYY-MM-DD"
                class="borderless-input"
                type="date"
                placeholder="请选择提交日期"
                size="large"
              ></el-date-picker>
            </el-descriptions-item> -->

          <!-- <input type="hidden" v-model="dataForm.Work_Log_SerialNumber" />
            <input type="hidden" v-model="dataForm.Creater_SerialNumber" /> -->

      </el-form>

      <!-- <div id="ChildTable">
        <div class="table_titel">
          <div class="titel">附件</div>
        </div>

        <el-descriptions :column="2" size="large" border
          :data-options="JSON.stringify({'TableName': 'work_teams_works_logs_attachment', 'form': 'childDataForm', 'ParentTableName': 'work_teams_works_logs'})">
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">附件</div>
            </template>
            <yl-upload ref="ylUpload" drag @success="(row, res)=>{this.FileUploadsuccess(row, res,'0')}"
              @remove="FileUploadremove" :limit="9" :file="fileList" @preview="handlepreview"></yl-upload>
          </el-descriptions-item>

        </el-descriptions>

      </div> -->
      <yl-online-preview :file-url="fileUrl" v-model="showDialog"></yl-online-preview>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../utils/utils.js"></script>
<script src="../../config/config.js"></script>
<script src="../../utils/compressor.js"></script>
<script src="../../utils/wangeditor.js"></script>
<script src="../../utils/mixins.js"></script>
<script src="../../yl/vue.js"></script>
<script src="../../yl/index.js"></script>
<script src="../../yl/zh-cn.mjs"></script>
<script src="../../yl/index.iife.min.js"></script>
<script src="../../yl/jquery.min.js"></script>
<script src="../../utils/jquery.cookie.js"></script>
<script src="../../yl/jquery.easyui.min.js"></script>
<script src="../../yl/jquery.easyui.mobile.js"></script>
<script src="../../yl/moment.min.js"></script>
<script src="../../api/request.js"></script>
<script src="js/add.js"></script>

</html>